package com.itheima.pattern.t2_factory.before;

public class TestDemo {

    public static void main(String[] args) {
        // 1、创建咖啡店类的对象
        CoffeeStore store = new CoffeeStore();
        // 2、点咖啡
        Coffee coffee = store.orderCoffee("american");
        // Coffee coffee = store.orderCoffee("latte");

        System.out.println(coffee.getName());
    }
}
